package values.module
{
import core.Configuration;

public class ModuleValue
{
	[Data(type="field", mapping="@key")]
	public var key:String;
	
	[Data(type="field", mapping="@url")]
	public var baseUrl:String;
	
	public function get url():String
	{
		return Configuration.modulePath + baseUrl;
	}
	
	[Data(type="field", mapping="@classRef")]
	public var classRef:String;
	
	[Data(type="mapping", 
			   mapping="skins.skin", 
			   ref="values.module.ModuleSkinValue",
			   way="one_to_more")]
	public var skins:Array = [];  /* ModuleSkinValue */
	
	[Data(type="mapping", 
			   mapping="datas.data", 
			   ref="values.module.ModuleDataValue",
			   way="one_to_more")]
	public var datas:Array = [];  /* ModuleDataValue */
}
}